import { hasToken } from "../utils/auth"

export function setUpPermission(router: any): void {
    router.beforeEach((to, from, next) => {
        const token = hasToken()

        if (!token && to.path != '/login') return next('/login')

        next()

    })
}

function createRouter() {

}